<?php

if (isset ($_GET['idNote'])) {

	require_once 'connexion.php';
		
	extract($_GET);
	modifier($idNote, $note);
	echo "note modifiée";
}else{
	echo "Y'a RIEN !!";
}

function modifier($idNote, $note) {
	//$date= date("Y-m-j H:i:s");
	$sql = "UPDATE notes SET note = ".$note." WHERE id_note = ".$note;
	mysql_query($sql) or die('Requête invalide : ' . mysql_error());
}

?>
